package com.cat.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 数据字典API接口
 */
@FeignClient("service-cmn")
public interface DictFeignClient {
    @GetMapping("/admin/cmn/{value}}")    //提供给服务调用的必须加value
    String getNameByValue(@PathVariable(value = "value") Long value);
    @GetMapping("/admin/cmn/{dictCode}/{value}")
    String getNameByDictCodeAndValue(@PathVariable(value = "dictCode") String dictCode,
                                     @PathVariable(value = "value") Long value);
}
